﻿<%@ Page Language="C#" MasterPageFile="~/SingleMasterPage.master" AutoEventWireup="true" CodeFile="UserRegister.aspx.cs" Inherits="UserRegister" Title="用户注册" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
          </div>
        </div>
  <div id="register">
    <h1>用户注册</h1>
    <br />
    <br />
    <h2>用户名：</h2>
    <p><asp:TextBox ID="TextBoxUserName" CssClass="username" size="30" runat="server"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="用户名不能为空" ControlToValidate="TextBoxUserName" Display="Dynamic"></asp:RequiredFieldValidator>
        <asp:CustomValidator ID="CustomValidator1" runat="server" ControlToValidate="TextBoxUserName"
        Display="Dynamic" ErrorMessage="用户名已经存在" OnServerValidate="CustomValidator1_ServerValidate"></asp:CustomValidator></p>
    <h2>密码：</h2>
    <p><asp:TextBox ID="TextBoxPassWord" CssClass="password" size="30" runat="server" TextMode="Password"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="密码不能为空" ControlToValidate="TextBoxPassWord" Display="Dynamic"></asp:RequiredFieldValidator></p>
    <p><asp:Button ID="ButtonRegister"  CssClass="registerbutton" runat="server" Text="注册" OnClick="ButtonRegister_Click" /></p>
  </div>
</asp:Content>

